package com.thermal.thermal_inspection.service;

import com.thermal.thermal_inspection.entity.Batch;
import com.thermal.thermal_inspection.entity.Inspection;
import com.thermal.thermal_inspection.entity.InspectionData;
import com.thermal.thermal_inspection.entity.InspectionDetail;
import com.thermal.thermal_inspection.vo.BatchDetailVo;
import com.thermal.thermal_inspection.vo.BatchVO;

import java.util.List;

public interface BatchService {
    /**
     * 插入批次
     */
    public Integer addBatch(Batch batch);
    /**
     * 获取所有批次
     */
    public List<Batch> getBatchs();
    /**
     * 查询看是否存在重复的批次名
     */
    public boolean existBatchName(String batchName);
    /**
     * 通过batchId来查询批次
     */
    public Batch getBatchById(int batchId);
    /**
     * 获取所有临时任务批次的id
     */
    public List<Batch> getBatchOfNoBatch();
    /**
     * 修改batch信息
     */
    public Integer updateBatch(BatchVO batchVO);
    /**
     * 删除批次信息
     */
    public Integer deleteBatch(int batchId);
    /**
     * 获取批次的模版信息
     */
    public List<BatchDetailVo> getInspectionDataByBatch(int batchId);
    /**
     * 修改批次的每个未开始的任务信息
     */
    public String updateInspectionDetailOfBatch(int batchId,List<InspectionDetail> inspectionDetails);
}
